Skip to content

Conversation

edgarsn
Copy link

@edgarsn edgarsn commented Feb 9, 2022

Currently Html::meta() only accepts string $name in phpdoc, but it can be null as well. For open graph name is not required attribute.

Usage sample: Html::meta(null, 'This is description', ['property' => 'og:description'])

This will fix phpstan & ide errors/warnings when using null.

Also I updated attributeElement phpdoc types for arguments, since it's used by meta function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant